//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function getAdvertising(params) {
    return request({
        url: '/api/advertising',
        method: 'GET',
        data: params
    });
};
// 广告设置新增 admin/slideshow/createList
export async function createBannerList(params) {
    return request({
        url: 'admin/slideshow/createList',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};
// 获取轮播列表 admin/slideshow/queryList
export async function getBannerList(params) {
    return request({
        url: 'admin/slideshow/queryList',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};
//删除单条 admin/slideshow/delete
export async function deleteBanner(params) {
    return request({
        url: 'admin/slideshow/delete',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};
// 修改单条轮播 admin/slideshow/update
export async function changeBanner(params) {
    return request({
        url: 'admin/slideshow/update',
        method: 'POST',
        data: params,
        headers: {
            "Content-type": "application/json",
        }
    });
};